<?php
/**
 * @author     ：lhw
 * @date       ：Created in 2019/8/4 15:54
 */

namespace app\api\Utils;


use app\api\vo\ResultVO;

class ReturnUtils
{
    public static function TrueResult($data){
        return json(new ResultVO([
            'data' => $data
        ]));
    }


    public static function ErrorResult($code){
        return json(new ResultVO([
            'data' => null,
            'code' => $code
        ]));
    }

}